#include <cstdio>
#include <algorithm>
#include <cmath>
using namespace std;
int n;
int main(void){
    while(~scanf("%d",&n)){
        printf("%.0lf\n",floor((n-1)*(n-1)/4.0));
    }
    return 0;
}